﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
using System.Text;

namespace devtm.Editor.Configuration.Data
{
    public class TemplateEnum: ConfigProperty
    {

        public TemplateEnum() { }

        public TemplateEnum(PropertyInfo propertyinfo, ElementSection instance) : base(propertyinfo, instance)
        {
            
            List<Object> l = new List<Object>();
            foreach (String f in Enum.GetNames(propertyinfo.PropertyType))
                l.Add(Enum.Parse(propertyinfo.PropertyType, f));

            this.Tag = l;

        }

        /// <summary>
        /// Runs the editor.
        /// </summary>
        public override void RunEditor() { }

        public override void Selector() { }

    }
}
